<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div></div>
    <script>
        // 获取参数
        var params = location.search;
        // console.log(params);
        var paramsOne = params.substr(1);
        // console.log(params.substr(1));
        var paramsArr = paramsOne.split('=');
        // console.log(paramsOne.split('='));
        var name = paramsArr[1];
        var div = document.querySelector('div');
        div.innerHTML = name + '欢迎您！';
    </script>
</body>

</html>